<section class="home-carousel-menu">
  <div class="top-menu">
    <div class="col-sm-offset-3 col-sm-9">
      <ul>
        <li><a href="">活动促销aaa</a></li>
        <li><a href="/wiki">门窗百科</a></li>
        <li><a href="/designers">家装“设”团</a></li>
        <li><a href="">服务网点</a></li>
      </ul>
    </div>
  </div>
  <div class="ncc-conter">
    <div class="bg-carousel">
      <!-- <img src="<%= image_path('new-home/banner.png') %>" alt=""> -->
      <home-carousel></home-carousel>
    </div>
    <div class="ncc-form">
      <h5>一键预约免费测量</h5>
      <div>
        <input class="form-control" type='text' placeholder='姓名'></input>
        <input class="form-control" type='text' placeholder='手机号'></input>
        <button class='ncc-form-btn'>北京</button><button class='ncc-form-btn ncc-form-btn-two'>北京</button>
        <button class='ncc-form-btn-yuyue'>一键预约</button>
        <p>
          今天有XXXXXXX人预约成功
        </p>
        <span class="ncc-span">
          <i></i>
          <p>13:58:92<br/>上海李女士</p>
        </span>
        <span class="ncc-span">
          <i></i>
          <p>13:58:92<br/>上海李女士</p>
        </span>
      </div>
    </div>
  </div>

  <div class="menus">
    <ul class="parent-menu">
      <li>所有商品</li>
      <% @categories.each do |category| %>
        <li>
          <div class="pull-right"><i class="fa fa-angle-right"></i></div>
          <%= category[0].try(:title) %>
          <div class="kid-menu">
            <ul>
              <% category[1].each do |item|%>
              <li><a href="/products?category_id=<%= item.id %>"><%= item.try(:title) %></a></li>
              <% end -%>
            </ul>
          </div>
        </li>
      <% end -%>
    </ul>
  </div>
</section>
